@font-family: Avenir, -apple-system, BlinkMacSystemFont, 'Segoe UI',
  'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue',
  Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
  'Segoe UI Symbol', sans-serif;

@theme-dark-img: url('../static/images/theme-dark.svg');
@theme-light-img: url('../static/images/theme-light.svg');
// 复写定制 gatsby 样式

body {
  font-size: 14px;
  font-family: @font-family;

  @background: #eaf2f6;

  height: 100vh;
  width: 100vw;
  background: @background !important;

  #gatsby-focus-wrapper {
    background: @background;
  }

  @header-height: 56px;
  @footer-height: 52px;
  @main-padding-vertical: 12px;
  @main-padding: 24px;

  main {
    min-height: calc(100vh - @header-height - @footer-height);
    margin: 0;
    padding: 0;
  }

  header {
    background-color: #873bf4;
  }

  footer {
    height: @footer-height;
    padding: 0 24px;
  }

  .site-header {
    display: flex;
    align-items: center;
    margin: 0 auto;
    padding: @main-padding-vertical @main-padding;
    color: #fff;

    .site-title {
      width: 100%;
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin: 0 auto;
    }

    h1 {
      // 字体
      font-family: @font-family;
      font-size: 20px;
      line-height: 32px;
      font-weight: 500;
      letter-spacing: 0;
      color: #fff;
    }

    h1,
    h1 a {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
  }

  header {
    .header-actions {
      display: flex;
      align-items: center;

      .header-action {
        cursor: pointer;

        .anticon {
          font-size: 16px;
          svg {
            fill: #fff;
            &:hover {
              opacity: 0.8;
            }
          }
        }
      }

      .header-action:not(:last-child) {
        margin-right: 24px;
        margin-left: 0px;
      }
    }
  }

  footer {
    font-family: @font-family;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(255, 255, 255, 0.85);

    .action-link {
      margin: 0 4px;
      &:hover {
        cursor: pointer;
      }
    }

    .action-link:first-of-type {
      margin-left: 12px;
    }

    .author {
      margin: 0 4px;
    }
  }
}

// 在这里复写一下 antd 样式
[class*='ant-popover-placement'] > .ant-popover-content > .ant-popover-arrow {
  border-color: #fff !important;
}

.website-help-content {
  color: rgba(0, 0, 0, 0.65);
  // letter-spacing: 0.4em;
}
@media (max-width: 560px) {
  .website-help-content {
    width: 100%;
  }
}
